<div class="layui-form-item">
    <label class="layui-form-label">商户ID</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="text" name="config[mer_id]" lay-verify="required" value="{$config['mer_id']}" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">APPID</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="text" name="config[appid]" lay-verify="required" value="{$config['appid']}" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">商户API私钥</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="hidden" name="config[private_key]" value="{$config['private_key']}" id="wxpay_apiclient_cert"/>
        <button style="float:left;" type="button" class="layui-btn layui-btn-primary uploadjstxt" lay-options="{field:'private_key'}">上传</button>
        <div id="private_key_text" class="layui-form-mid" style="margin-left:20px;"><if condition="!empty($config['private_key'])">已上传</if></div>
    </div>
    <div class="layui-form-mid layui-text-em">「商户API私钥」会用来生成请求的签名</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">证书序列号</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="text" name="config[ficate_serial]" lay-verify="required" value="{$config['ficate_serial']}" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-text-em">「商户API证书」的「证书序列号」</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">支付宝公钥</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="hidden" name="config[public_key]" value="{$config['public_key']}" id="ficate_file"/>
        <button style="float:left;" type="button" class="layui-btn layui-btn-primary uploadjstxt" lay-options="{field:'public_key'}">上传</button>
        <div id="ficate_file_text" class="layui-form-mid" style="margin-left:20px;"><if condition="!empty($config['public_key'])">已上传</if></div>
    </div>
    <div class="layui-form-mid layui-text-em">「支付宝公钥」会用来生成请求的签名</div>
</div>
